﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddMultipleColumns.aspx.cs"
    Inherits="SmartTag.Layouts.AddMultipleColumns" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<script type="text/javascript">

    function AlertColumnsFound() {
        alert("No managed metadata columns found to configure.\nPlease click cancel to return back to settings page.");
    }

</script>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    SmartTag Add / Edit Multiple Columns
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
            <a id="onetidListHlink" href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.DefaultViewUrl,true),Response.Output);%>>
        <%SPHttpUtility.HtmlEncode(List.Title, Response.Output);%></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow
            ID="ClusteredDirectionalSeparatorArrow1" runat="server" />
    <a href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(List.ParentWeb.Url + "/_layouts/listedit.aspx?List=" + List.ID.ToString(),true),Response.Output);%>>
        <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType1" runat="server"
            String="<%$Resources:wss,listsettings_titleintitlearea%>" LowerCase="false" />
    </a>&#32;
        <SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow2"
        runat="server" />
    <a href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode("Configuration.aspx?List=" + List.ID.ToString(),true),Response.Output);%>>
        <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType2" runat="server"
            String="SmartTag settings" LowerCase="false" />
    </a>&#32;
        <SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow3"
        runat="server" />
    <SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="Add / Edit Multiple Columns"
        EncodeMethod='HtmlEncode' />  
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table cellspacing="0" cellpadding="0" border="0" width="100%" class="ms-descriptiontext">
        <tbody>
            <tr id="ctl00_PlaceHolderMain_NavigationSection_tablerow1">
                <td height="1" colspan="2" class="ms-sectionline">
                    <img height="1" width="1" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
            <tr id="ctl00_PlaceHolderMain_NavigationSection">
                <td valign="top" class="ms-descriptiontext">
                    <table cellspacing="0" cellpadding="1" border="0" width="100%">
                        <tbody>
                            <tr>
                                <td height="22" valign="top" style="padding-top: 4px;" class="ms-sectionheader">
                                    <h3 class="ms-standardheader ms-inputformheader">
                                        Managed Metadata Columns to tag
                                    </h3>
                                </td>
                            </tr>
                            <tr>
                                <td class="ms-descriptiontext ms-inputformdescription">
                                    Select multiple columns to tag. The columns which are already configured are pre-selected. However,
                                    you can select other columns to configure. If you de-select the columns which are already configured,
                                    old configuration will be persisted.
                                </td>
                                <td>
                                    <img height="1" width="8" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <img height="19" width="150" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
                <td align="left" valign="top" class="ms-authoringcontrols ms-inputformcontrols">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tbody>
                            <tr>
                                <td width="9px">
                                    <img height="7" width="9" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td>
                                    <img height="7" width="150" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td width="10px">
                                    <img height="1" width="10" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td class="ms-authoringcontrols">
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%" class="ms-authoringcontrols">
                                        <tbody>
                                            <tr id="ctl00_PlaceHolderMain_NavigationSection_ctl01_tablerow1">
                                                <td colspan="2" class="ms-authoringcontrols">
                                                    <table cellspacing="0" cellpadding="0" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td class="ms-authoringcontrols">
                                                                    Managed metadata columns:
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr id="ctl00_PlaceHolderMain_NavigationSection_ctl01_tablerow2">
                                                <td>
                                                    <img height="3" width="1" alt="" style="display: block" src="/_layouts/images/blank.gif">
                                                </td>
                                            </tr>
                                            <!-- End Right_Text -->
                                            <tr id="ctl00_PlaceHolderMain_NavigationSection_ctl01_tablerow3">
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td class="ms-authoringcontrols">
                                                    <asp:CheckBoxList runat="server" ID="chkLstColumns" />
                                                </td>
                                            </tr>
                                            <tr id="ctl00_PlaceHolderMain_NavigationSection_ctl01_tablerow5">
                                                <td>
                                                    <img height="6" width="1" alt="" style="display: block" src="/_layouts/images/blank.gif">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <td width="10px">
                                    <img height="1" width="10" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <img height="13" width="150" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="1" colspan="2" class="ms-sectionline">
                    <img width="1" height="1" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
            <tr>
                <td valign="top" class="ms-descriptiontext">
                    <table width="100%" cellspacing="0" cellpadding="1" border="0">
                        <tbody>
                            <tr>
                                <td valign="top" height="22" style="padding-top: 4px;" class="ms-sectionheader">
                                    <h3 class="ms-standardheader ms-inputformheader">
                                        Number of words to scan
                                    </h3>
                                </td>
                            </tr>
                            <tr>
                                <td class="ms-descriptiontext ms-inputformdescription">
                                    Please provide the number of words to be scanned from document to decide tags. This
                                    is the approximate count, based upon the words scanned from document, SmartTag decides
                                    which Managed Metadata values are most suitable for the current document.
                                </td>
                                <td>
                                    <img width="8" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <img width="150" height="19" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
                <td valign="top" align="left" class="ms-authoringcontrols ms-inputformcontrols">
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td width="9px">
                                    <img width="9" height="7" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td>
                                    <img width="150" height="7" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td width="10px">
                                    <img width="10" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td class="ms-authoringcontrols">
                                    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="ms-authoringcontrols">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <span title="Number of words">
                                                        <label>
                                                            Number of words (Minimum: 100, Maximum: 10000):
                                                        </label>
                                                    </span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table cellspacing="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td class="ms-authoringcontrols">
                                                                    <asp:TextBox runat="server" ID="txtNumberOfWords" CssClass="ms-input" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td>
                                                                    <asp:RequiredFieldValidator ID="rfNumberOfWordsValidator" runat="server" Display="Dynamic"
                                                                        ValidationGroup="grpSubmitForm" ErrorMessage="Please enter number of words."
                                                                        ControlToValidate="txtNumberOfWords" />
                                                                    <asp:RegularExpressionValidator ID="regexNumberOfWordsValidator" runat="server" Display="Dynamic"
                                                                        ValidationGroup="grpSubmitForm" ErrorMessage="Please enter a valid number of words."
                                                                        ControlToValidate="txtNumberOfWords" ValidationExpression="^([1-9][0-9]{1,2}\d|10000)$" />
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <td width="10px">
                                    <img width="10" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <img width="150" height="13" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="1" colspan="2" class="ms-sectionline">
                    <img width="1" height="1" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
            <tr>
                <td valign="top" class="ms-descriptiontext">
                    <table width="100%" cellspacing="0" cellpadding="1" border="0">
                        <tbody>
                            <tr>
                                <td valign="top" height="22" style="padding-top: 4px;" class="ms-sectionheader">
                                    <h3 class="ms-standardheader ms-inputformheader">
                                        Relevance
                                    </h3>
                                </td>
                            </tr>
                            <tr>
                                <td class="ms-descriptiontext ms-inputformdescription">
                                    Document content can have same word repeating for multiple times. If any word occurs
                                    for one time dosent always mean that, document is related to that term. Word Relevance
                                    controls the tagging operation in such case. Higher Relevance means number of occurances
                                    should be heigher. Please provide the minimum number of occurances for single word
                                    before it will be identified as Tag.
                                </td>
                                <td>
                                    <img width="8" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <img width="150" height="19" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
                <td valign="top" align="left" class="ms-authoringcontrols ms-inputformcontrols">
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td width="9px">
                                    <img width="9" height="7" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td>
                                    <img width="150" height="7" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td width="10px">
                                    <img width="10" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td class="ms-authoringcontrols">
                                    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="ms-authoringcontrols">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <span title="Relevance">
                                                        <label>
                                                            Enter the Relevance (Minimum: 1, Maximum: 100):
                                                        </label>
                                                    </span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table cellspacing="1" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td class="ms-authoringcontrols">
                                                                    <asp:TextBox runat="server" ID="txtRelevance" CssClass="ms-input" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;
                                                                </td>
                                                                <td>
                                                                    <asp:RequiredFieldValidator ID="rfRelevanceValidator" runat="server" Display="Dynamic"
                                                                        ValidationGroup="grpSubmitForm" ErrorMessage="Please enter Relevance." ControlToValidate="txtRelevance" />
                                                                    <asp:RegularExpressionValidator ID="regexRelevanceValidator" runat="server" Display="Dynamic"
                                                                        ValidationGroup="grpSubmitForm" ErrorMessage="Please enter a valid Relevance value."
                                                                        ControlToValidate="txtRelevance" ValidationExpression="^([1-9]|[1-9]\d|100)$" />
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                                <td width="10px">
                                    <img width="10" height="1" alt="" src="/_layouts/images/blank.gif">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <img width="150" height="13" alt="" src="/_layouts/images/blank.gif">
                                </td>
                                <td>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="2px" colspan="2" class="ms-sectionline">
                    <img height="1" width="1" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
            <tr>
                <td height="10px" colspan="2" class="ms-descriptiontext">
                    <img height="10" width="1" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <table width="100%" cellspacing="0" cellpadding="0">
                        <colgroup>
                            <col width="99%">
                            <col width="1%">
                        </colgroup>
                        <tbody>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td nowrap="nowrap">
                                    <asp:Button runat="server" ValidationGroup="grpSubmitForm" ID="btnSave" CssClass="ms-ButtonHeightWidth"
                                        AccessKey="s" Text="Save" />
                                    <asp:Button runat="server" ID="btnCancel" CssClass="ms-ButtonHeightWidth" AccessKey="C"
                                        Text="Cancel" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="40" colspan="2" class="ms-descriptiontext s4-notdlg">
                    <img height="40" width="1" alt="" src="/_layouts/images/blank.gif">
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
